package com.imooc.example.springtxpa.dao;

import com.imooc.example.springtxpa.domain.Customer;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author lynn
 */
public interface CustomerRepository extends JpaRepository<Customer,Long> {

    /**
     * 按用户名查找用户
     * @param username
     * @return
     */
    Customer findOneByUsername(String username);

}
